import 'package:flutter/material.dart';

import 'package:get/get.dart';

import '../controllers/tabbar_vc_controller.dart';

class TabbarVcView extends GetView<TabbarVcController> {
  const TabbarVcView({super.key});
  @override
  Widget build(BuildContext context) {
    TabbarVcController controller = Get.put(TabbarVcController());
    return Obx(() => Scaffold(
          body: controller.pages[controller.currentIndex.value],
          bottomNavigationBar: BottomNavigationBar(
            items: controller.items,
            currentIndex: controller.currentIndex.value,
            type: BottomNavigationBarType.fixed,
            onTap: (value) {
              controller.setCurrentindex(value);
            },
          ),
        ));
  }
}
